<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="java.net.*" %>
<%@include file="../../tools/commonTag.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>资源模块</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link rel="stylesheet" href="${path}/style/backui/system.css">
		<script src="${path}/js/jquery-1.6.js"></script>
		<script src="${path}/js/backjs/sysutil.js"></script>
		<script type="text/javascript">getPath("<%=request.getContextPath()%>") ;</script>
	</head>

	<body>
		<div id="main">
			<div id="page_body">
				<div class="page_title">
					<table style="margin:auto;padding:auto;" cellspacing="0" cellpadding="3" border="0" class="small">
					  	<tbody>
					  		<tr>
						    	<td class="Big"><span class="big3">资源模块</span></td>
						    	<td valign="bottom" align="right" class="small1">
						    		<!-- 不进行分页 -->
							    	<jsp:include page="/tools/paging.jsp">
							    		<jsp:param value="" name="urladdr"/>
							    		<jsp:param value="" name="urlparams"/>
							    	</jsp:include>
								</td>
						    </tr>
						</tbody>
					</table>
				</div>
				<div class="page_content">
					<table class="TableList" width="95%" align="center">
						<tbody>
							<tr class="TableHeader">
								<td align="center" nowrap="">选择</td> 
								<td align="center">模块名称</td>
								<td align="center">模块描述</td>
								<td align="center" nowrap="">操作</td>
							</tr>
							<c:choose>
								<c:when test="${!empty privilegeModel}">
									<c:forEach var="model" items="${privilegeModel}">
										<tr class="TableData" lang="TableData">
											<td align="center" nowrap=""><input type="checkbox" name="allbox" value="${model.m_id}"/></td>
											<td align="center" nowrap="">${model.m_name}</td>
											<td align="center">${model.m_desc}</td>
											<td align="center" nowrap="">
												<a href="${path}/privilegeItem!queryByIdList.action?pritem.mc_id=${model.m_id}">查看模块列表</a>
											</td>
									    </tr>
									</c:forEach>
								</c:when>
								<c:otherwise>
									<tr class="TableData">
										<td align="center" colspan="9"><b>没有符合的数据！</b></td>
									</tr>
								</c:otherwise>
							</c:choose>
							<tr class="TableControl">
								<td colspan="19">
									<a href="javascript:;" onclick="check_all()">全选</a>&nbsp;/&nbsp;
									<a href="javascript:;" onclick="uncheck_all()">反选</a>&nbsp;
								  	<a id="deletes" title="删除所选" href="javascript:getDelUrl('7,org,dels,d1');">删除</a>&nbsp; 
								</td>
						   </tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		
		<script type="text/javascript">
			var tb = $(".TableList") ;
			var title_tb = $(".small") ;
			title_tb.css("width",tb.attr("width")) ;
		</script>
	</body>
</html>
